//
//  TopVideosCollectionViewCell.m
//  SYiDaiy
//
//  Created by dllo on 16/8/31.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "TopVideosCollectionViewCell.h"
#import "UIView+ImageView.h"
#import "UIView+Label.h"
#import "TAMacro.h"
#import "UIView+Frame.h"
@implementation TopVideosCollectionViewCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        _cover_thumb_hdImageView = [[UIImageView alloc] creatImageViewWithFrame:CGRectZero backgroudColor:[UIColor whiteColor]];
        [self.contentView addSubview:_cover_thumb_hdImageView];
        _titleLabel = [[UILabel alloc] creatLabelWithFrame:CGRectZero tintColor:[UIColor whiteColor] font:[UIFont systemFontOfSize:14]];
        _titleLabel.backgroundColor = [UIColor blackColor];
        _titleLabel.textColor = [UIColor whiteColor];
        [self.contentView addSubview:_titleLabel];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
    
    _cover_thumb_hdImageView.frame = CGRectMake(0, 0, SCREEN_WIDTH, self.bounds.size.height);
    _titleLabel.frame = CGRectMake(5, self.bounds.size.height - 30, self.bounds.size.width - 5, 20);
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

@end
